<?php
/*
 *      vote.php
 *      
 *      Copyright 2011 unro <unro.ua@gmail.com>
 *      
 *      This program is free software; you can redistribute it and/or modify
 *      it under the terms of the GNU General Public License as published by
 *      the Free Software Foundation; either version 2 of the License, or
 *      (at your option) any later version.
 *      
 *      This program is distributed in the hope that it will be useful,
 *      but WITHOUT ANY WARRANTY; without even the implied warranty of
 *      MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *      GNU General Public License for more details.
 *      
 *      You should have received a copy of the GNU General Public License
 *      along with this program; if not, write to the Free Software
 *      Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
 *      MA 02110-1301, USA.
 */
 
include ("../session.php");
Openconn();
SelectDB(imwcp);
$uid = $_SESSION["uid"];
?>
<table width="250px" align="center" style="padding: 5px;">
	<tr><td>ТОП</td><td>Голосование</td></tr>
	<?php
		$serviseselect = mysql_query("SELECT * FROM `game_top`");
		if(mysql_num_rows($serviseselect) != 0)
			{
				while($rov = mysql_fetch_array($serviseselect)) 
				{
					echo "<tr><td>".$rov['name']."</td><td>".CheckUserVote( $rov['id'], $uid)."</td></tr>"; 
				}
			}
		else echo "<td colspan=2>Администрация еще не добавила ТОПы в список!</td>";		
	?>
</table>
